<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>表单绑定-复选框checkbox</title>
  <script type="text/javascript" src="vue.js"></script>
</head>
<body>
    <div id="app">
        <span>请选择语言，已选择 {{ languages.length }} 种</span>
        <br/>
        <input type="checkbox" id="python" 
            value="Python" v-model="languages"/>
        <label for="python">Python</label>

        <input type="checkbox" id="javascript" 
            value="JavaScript" v-model="languages"/>
        <label for="javascript">JavaScript</label>

        <input type="checkbox" id="pascal" 
        value="Pascal" v-model="languages"/>
        <label for="pascal">Pascal</label>
    </div>
    <script>
        let vm = new Vue({
            el:"#app",
            data:{
                languages:[]
            }
        })
    </script>
</body>
</html>